@import 'clear.less';

// 最外层
#wrapper {
    position: relative;

    // 头部
    #header {

        // 最顶部
        .headTop {
            background-color: #eaeaea;
            height: 30px;

            // 版心元素
            .headTopMain {
                line-height: 30px;
                width: 1200px;
                margin: 0 auto;
                .clearfix();

                // 版心左侧
                .left {
                    float: left;

                    h5 {
                        float: left;
                        margin-right: 5px;
                        margin: 5px;
                    }

                    p {
                        float: left;
                        margin: 5px;

                        a {
                            color: #bdb8b8;

                            // text-decoration: none;
                            &:first-child {
                                border-right: 1px solid #aeaeae;
                                margin: left 0px;
                                padding-right: 5px;
                            }
                        }
                    }
                }

                .right {
                    float: right;

                    nav {
                        font-size: 0px;

                        a {
                            color: #000;
                            font-size: 12px;
                            margin-right: 10px;
                            padding-right: 10px;
                            border-right: 1px solid #b3aeae;
                            text-decoration: none;

                            &:last-child {
                                border-right: none;
                                margin-right: 10px;
                            }
                        }
                    }
                }
            }
        }

        .headBottom {
            .headBottomMain {
                width: 1200px;
                margin: 0 auto;
                .clearfix();

                .log {
                    float: left;

                    img {
                        width: 175px;
                        height: 56px;
                        margin: 25px 45px;
                    }
                }

                .search {
                    float: right;
                    margin-top: 35px;

                    // 文本框
                    input {
                        &:first-child {
                            box-sizing: border-box;
                            width: 490px;
                            height: 32px;
                            padding: 0 4px;
                            border: 3px solid #ea4a36;
                            float: left;
                            color: blue;
                        }

                        &:last-child {
                            width: 68px;
                            height: 32px;
                            background-color: #ea4a36;
                            color: white;
                            border: none;
                        }

                        // place
                        &::-webkit-input-placeholder {
                            color: yellowgreen;
                        }
                    }
                }
            }

        }
    }

    // 分类导航开始
    #navWrap {
        border-bottom: 2px solid #e1251b;

        // 版心元素
        .navWrapMain {
            width: 1200px;
            margin: 0 auto;
            // overflow: hidden;
            .clearfix();

            a {
                text-decoration: none;
                margin: 0 22px;
                font-size: 20px;
                color: #333;
                float: left;
                line-height: 50px;

                &:first-child {
                    width: 210px;
                    height: 50px;
                    background-color: #e1251b;
                    color: #fff;
                    font-size: 20px;
                    font-weight: bold;
                    float: left;
                    text-align: center;
                    line-height: 50px;
                }
            }
        }
    }

    // 分类导航结束
    // 内容区域开始
    #content {
        .contentMain {
            width: 1200px;
            margin: 15px auto 0 auto;

            // 导航路径
            .navPath {
                padding: 9px 15px 9px 25px;
                font-size: 0px;

                a {
                    font-size: 12px;
                }

                i {
                    padding: 0 5px;
                    font-size: 12px;
                }
            }

            // 中间区域开始
            .center {
                margin: 5px 0 15px;
                // overflow: hidden;
                .clearfix();

                // 中间区域左侧
                .left {
                    width: 400px;
                    float: left;

                    // 上边
                    .leftTop {
                        width: 400px;
                        position: relative;

                        // 小图框
                        .smallPic {
                            width: 400px;
                            height: 400px;
                            border: 1px solid #dfdfdf;

                            img {}

                            // 蒙版元素
                            .mask {
                                width: 200px;
                                height: 200px;
                                background: rgba(255, 255, 255, 0.5);
                                border: 1px solid #ddd;
                                position: absolute;
                                left: 0px;
                                top: 0px;
                            }
                        }

                        // 大图框
                        .bigPic {
                            width: 400px;
                            height: 400px;
                            border: 1px solid #ddd;
                            left: 420px;
                            top: 0px;
                            position: absolute;
                            overflow: hidden;

                            img {
                                width: 800px;
                                height: 800px;
                                position: absolute;
                                left: 0px;
                                top: 0px
                            }
                        }
                    }

                    // 下面
                    .leftBootom {
                        width: 400px;
                        margin-top: 5px;

                        a {

                            width: 10px;
                            height: 54px;
                            border: 1px solid #ccc;
                            background-color: #ebebeb;
                            text-align: center;
                            line-height: 54px;
                            float: left;

                            &:first-child {
                                margin-left: 4px;
                            }

                        }

                        .picList {
                            width: 372px;
                            height: 56px;
                            float: left;
                            white-space: nowrap;
                            overflow: hidden;
                            position: relative;

                            ul {
                                white-space: nowrap;
                                font-size: 0px;
                                position: absolute;
                                left: 0px;

                                li {
                                    width: 50px;
                                    height: 50px;
                                    border: 1px solid #ccc;
                                    padding: 2px;
                                    margin-right: 20px;
                                    display: inline-block;

                                    img {
                                        width: 50px;
                                        height: 50px;
                                    }
                                }
                            }
                        }
                    }
                }

                .right {
                    float: right;
                    width: 700px;

                    //商品详情的上半部分
                    .rightTop {
                        h3 {
                            font-size: 14px;
                            line-height: 21px;
                            margin-top: 15px;
                        }

                        >p {
                            color: #e12228;
                            margin-top: 15px;
                        }

                        .priceWrap {
                            margin-top: 10px;
                            line-height: 28px;
                            background: #fee9ec;
                            padding: 7px;

                            .priceTop {
                                .clearfix();

                                >span {
                                    float: left;
                                    margin-right: 15px;
                                }

                                .price {
                                    float: left;
                                    color: #cc1122;

                                    >span {
                                        float: left;
                                        font-size: 16px;
                                    }

                                    p {
                                        float: left;
                                        font-size: 24px;
                                        font-weight: bold;
                                    }

                                    i {
                                        float: left;
                                        font-size: 12px;
                                    }
                                }

                                >p {
                                    float: right;
                                }
                            }

                            .priceBottom {
                                .clearfix();

                                >span {
                                    float: left;
                                    margin-right: 15px;
                                }

                                p {
                                    float: left;
                                    width: 520px;
                                    line-height: 28px;

                                    span {
                                        color: #999;

                                        &:first-child {
                                            background: #c81623;
                                            color: #fff;
                                            padding: 3px;
                                        }
                                    }
                                }
                            }
                        }

                        .support {
                            margin-top: 10px;
                            line-height: 28px;
                            .clearfix();

                            >span {
                                float: left;
                                margin-right: 15px;
                            }

                            >p {
                                float: left;
                                width: 520px;
                                color: #999;
                            }
                        }

                        .address {
                            margin-top: 10px;
                            line-height: 28px;
                            border-bottom: 1px solid #ededed;
                            padding-bottom: 5px;
                            .clearfix();

                            >span {
                                float: left;
                                margin-right: 15px;
                            }

                            >p {
                                float: left;
                                width: 520px;
                                color: #999;
                            }
                        }
                    }

                    //商品详情的下半部分
                    .rightBottom {
                        margin-top: 10px;
                        line-height: 28px;

                        // 展示商品选择区域
                        .choose {
                            .clearfix();

                            .mark {
                                height: 30px;
                                background-color: snow;
                                border: 1px solid #ddd;
                                padding: 0 20px;
                                text-align: center;
                                line-height: 30px;
                                margin-right: 20px;
                                float: left;

                                a {
                                    color: red;
                                    margin-left: 20px;
                                }
                            }
                        }

                        // 商品选择区域
                        .chooseWrap {
                            margin-top: 10px;
                            line-height: 18px;

                            dl {
                                margin-top: 13px;
                                margin-bottom: 13px;
                                .clearfix();

                                dt {
                                    margin-right: 15px;
                                    float: left;
                                }

                                dd {
                                    margin-right: 5px;
                                    color: #666;
                                    line-height: 24px;
                                    padding: 2px;
                                    border-top: 1px solid #eee;
                                    border-left: 1px solid #eee;
                                    border-right: 1px solid #bbb;
                                    border-bottom: 1px solid #bbb;
                                    text-align: center;
                                    float: left;

                                    &:first-of-type {
                                        color: red;
                                    }
                                }
                            }
                        }
                    }

                    // 购物车区域
                    .addCart {
                        .clearfix();

                        .count {
                            width: 55px;
                            margin-right: 15px;
                            position: relative;
                            float: left;

                            input {
                                width: 38px;
                                height: 37px;
                                border: 1px solid #ddd;
                                color: #555;

                            }

                            a {
                                width: 15px;
                                height: 18px;
                                color: #666;
                                background-color: #f1f1f1;
                                border: 1px solid #ddd;
                                right: 1px;
                                position: absolute;
                                text-align: center;
                                line-height: 18px;

                                &:first-child {
                                    top: 0px;
                                }

                                &:last-child {
                                    top: 20px;
                                    border-top: 0px;

                                }
                            }
                        }

                        button {
                            padding-left: 25px;
                            padding-right: 25px;
                            height: 36px;
                            font-size: 16px;
                            background-color: #e1251b;
                            color: #fff;
                            border: none;
                            float: left;
                        }
                    }

                }

                //右侧商品详情结束
            }

            // 商品详情部分开始
            .goodsDetailWrap {
                width: 1200px;
                margin: 30px auto 0;
                .clearfix();

                .leftAside {
                    width: 210px;
                    border: 1px solid #ccc;
                    float: left;
                    .clearfix();

                    .asideTop {
                        .clearfix();

                        h4 {
                            height: 40px;
                            width: 105px;
                            background: #fff;
                            float: left;
                            text-align: center;
                            line-height: 40px;
                            border-top: 3px solid #fff;
                            border-bottom: 1px solid #ccc;

                            &.active {
                                border-top: 3px solid #e1251b;
                                width: 105px;
                                line-height: 37px;
                                border-bottom: none;
                            }
                        }
                    }

                    .asideBottom {
                        padding: 10px;

                        div {
                            display: none;

                            &.active {
                                display: block;

                                ul {
                                    &.goodsList1 {
                                        li {
                                            width: 50%;
                                            border-bottom: 1px dashed #ededed;
                                            line-height: 28px;
                                            float: left;

                                        }
                                    }

                                    &.goodsList2 {
                                        li {
                                            border-bottom: px solid #ededed;

                                            img {
                                                width: 152px;
                                            }

                                            span {}

                                            p {
                                                font-size: 16px;
                                                color: #c81623;
                                            }

                                            .button {
                                                margin-top: 5px;
                                                margin-bottom: 5px;
                                                text-align: center;

                                                a {
                                                    border: 1px solid #8c8c8c;
                                                    color: #8c8c8c;
                                                    padding: 2px 14px;
                                                    line-height: 18px;
                                                }
                                            }
                                        }
                                    }

                                }
                            }
                        }
                    }
                }

                .rightDetail {
                    width: 980px;
                    float: left;
                    margin-left: 8px;

                    .chooseBox {
                        border: 1px solid #ddd;
                        margin-bottom: 15px;

                        h4 {
                            border-bottom: 1px solid #ddd;
                            background: #f1f1f1;
                            color: #333;
                            padding: 5px 0 5px 15px;
                        }

                        .listWrap {
                            height: 170px;
                            padding-top: 10px;
                            position: relative;
                            .clearfix();

                            .left {
                                width: 127px;
                                height: 165px;
                                text-align: center;

                                float: left;

                                img {
                                    width: 87px;
                                    margin: 0 auto;
                                }

                                p {
                                    color: #c81623;
                                    font-size: 16px;

                                }

                                i {
                                    position: absolute;
                                    top: 48px;
                                    right: -25px;
                                    font-size: 16px;
                                }
                            }

                            .middle {
                                float: left;
                                width: 668px;
                                height: 165px;
                                text-align: center;
                                .clearfix();

                                li {
                                    float: left;
                                    width: 127px;
                                    margin-right: 20px;
                                    margin-right: 20px;

                                    img {
                                        width: 120px;
                                        height: 130px;
                                    }

                                    >span {}

                                    div {

                                        input {}

                                        span {}
                                    }
                                }
                            }

                            .right {
                                float: left;
                                border-left: 1px solid #ddd;
                                width: 153px;
                                height: 165px;
                                padding-left: 20px;

                                >div {
                                    margin-top: 10px;
                                    margin-bottom: 10px;
                                }

                                p {
                                    font-weight: bold;
                                    margin-bottom: 10px;
                                }

                                i {
                                    color: #b1191a;
                                    font-size: 16px;
                                    margin-bottom: 10px;

                                }

                                button {
                                    padding: 10px 25px;
                                    font-size: 16px;
                                    color: #fff;
                                    background-color: #e1251b;
                                    border: none;
                                }

                            }
                        }
                    }

                    .bottomDetail {
                        .tabBtns {
                            background: #ededed;
                            .clearfix();

                            li {
                                border-top: 1px solid #ddd;
                                border-bottom: 1px solid #ddd;
                                // border-right:1px solid #ddd;
                                border-left: 1px solid #ddd;
                                background: #fff;
                                height: 40px;
                                padding-left: 1px;
                                padding-right: 11px;
                                text-align: center;
                                line-height: 40px;
                                float: left;

                                &.active {
                                    background: red;
                                    // border-left:1px solid #ddd;

                                    a {
                                        color: #fff;
                                    }
                                }

                                &:last-child {
                                    border-right: 1px solid #ddd;

                                }

                            }
                        }

                        .tabContent {
                            div {
                                padding-left: 20px;
                                line-height: 25px;
                                display: none;

                                &.active {
                                    margin: 10px 0;
                                    display: block;
                                }
                            }

                        }
                    }
                }
            }

            // 商品详情部分结束
        }
    }

    // 内容区域结束


    // 右边侧边栏kaishi
    .rightAside {
        width: 300px;
        height: 100%;
        background: #7a6e6e;
        transition: 0.5s;
        position: fixed;
        top: 0px;

        &.asideClose {
            right: -294px;
        }
        &.asideOpen {
            right: 0px;
        }

        .btns {
            width: 35px;
            height: 35px;
            background: #7a6e6e;
            border-radius: 5px 0 0 0;
            left: -29px;
            background-size: 35px 35px;
            position: absolute;

            &.btnsClose {
                background-image: url('../img/list.png');
            }
            &.btnsOpen {
                background-image: url('../img/cross.png');
            }

        }

        .content {
            width: 294px;
            background: bisque;
            position: absolute;
            left: 6px;
            top: 0px;
            bottom: 0px;
            z-index: 50;
        }

        .navlist {
            position: absolute;
            left: -29px;
            top: 50%;
            transform: translateY(-50%);

            li {
                width: 35px;
                height: 35px;
                position: relative;

                p {
                    width: 35px;
                    height: 35px;
                    background: #7a6e6e;
                    background-image: url('../img/toolbars.png');
                    background-position: -87px -174px;
                    transition: 0.5s;

                }

                i {
                    width: 62px;
                    height: 35px;
                    text-align: center;
                    line-height: 35px;
                    position: absolute;
                    left: 35px;
                    transition: 0.5s;
                    top: 0px;
                    background: #7a6e6e;

                }
                &:hover{
                    p{
                        background-color: pink;
                    }
                    i{
                        background-color: pink;
                        left:-62px;
                    }
                }
            }
        }
    }

    // 右边侧边栏结束
}